cars = ['audi', 'bmw', 'subaru', 'toyota']
for item in cars:
	if(item == 'bmw'):
		print(item.upper())
	else:
		print(item.title())

if('bmw' in cars):
	print('hehe is here')
else:
	print('hehe is not here')

if('bmw1' not in cars):
	print('hehe is not here')
else:
	print('hehe is here')


print("\n##########################prac-5.1 and 5.2#########################") 
car = 'subaru'
print('Is car == subaru? I predict true')
print(car == 'subaru')
print('Is car == audi? I predict false')
print(car == 'audi')

num = 18
if num > 19:
	print('1')
elif num > 20:
	print('2')
elif num > 17:
	print('3333')
elif num > 16:
	print('4')
else:
	print('5')


print("\n##########################prac-5.3#########################") 

point = 0
alien_color = 'green'
if alien_color == 'green':
	point += 5
	print('alien is green')
print('first shot:' + str(point))
alien_color = 'red'
if alien_color == 'green':
	point += 5
	print('alien is green')
print('second shot:' + str(point))

alien_color = 'yellow'
if alien_color == 'green':
	print ('you get 5 point')
elif alien_color == 'red':
	print('you have got 10 point')
elif alien_color == 'yellow':
	print('you have got 15 point')
else:
	print('hehe')

age = 300
if age < 2:
	print('you are a baby')
elif age < 4:
	print('you are a step begginner')
elif age < 13:
	print('you are a children')
elif age < 20:
	print('you are a youth')
elif age < 65:
	print('you are a adult')
else:
	print('you are on the wall')

favorite_fruits = ['apple','banana','pear']
fruit = 'banana'
if fruit in favorite_fruits:
	print('you really like ' + fruit)
fruit = 'aaa'
if fruit in favorite_fruits:
	print('you really like ' + fruit)
fruit = 'bbbb'
if fruit in favorite_fruits:
	print('you really like ' + fruit)
fruit = 'apple'
if fruit in favorite_fruits:
	print('you really like ' + fruit)
fruit = 'pear'
if fruit in favorite_fruits:
	print('you really like ' + fruit)
fruit = 'pearr'
if fruit in favorite_fruits:
	print('you really like ' + fruit)

favorite_fruits = ['banana']
if favorite_fruits :
	for item in favorite_fruits :
		print("Adding " + item)
else:
	print('no fruit,eat wind please')


available_toppings = ['aaa','bbb','ccc','ddd','eee']
request_toppings = ['bbb','hehe','hoho','eee','heiehiei']
for item in request_toppings:
	if item in available_toppings:
		print('Adding ' + item)
	else:
		print('dont eat ' + item + ' ,idoit')
print('finished making your pizza')

print("\n##########################prac-5.4#########################") 
users = ['aaa','bbb','admin','ccc','dddd']
users = []
if users:
	for item in users:
		if (item == 'admin'):
			print(item + ',u r admin,some thing to eat???')
		else:
			print('welcome ' + item + ',but u are not admin')
else:
	print('We need to find some users!!!')


current_users = ['aaa','bbb','admin','ccc','dddd','John']
new_user = ['zs','ls','ww','bbb','JOHN','admin','hehe']
little_current_user = []
for item in current_users:
	little_current_user.append(item.lower())

for item in new_user:
	if item.lower() in little_current_user:
		print(item + ' is exist,please use other user name')
	else:
		print(item + ' is not exist,u can use it')

print(current_users)
print(little_current_user)

for i in range(1,10):
	if(i == 1):
		print('1st')
	elif(i == 2):
		print('2nd')
	elif(i == 3):
		print('3rd')
	else:
		print(str(i) + 'th')


















